package com.telrob.bytevm.instruct;

import java.util.List;

import com.telrob.bytevm.compile.Instruct;
import com.telrob.bytevm.compile.ReplaceCode;
import com.telrob.bytevm.vm.Register;

/***
 * 标签定义，伪指令
 * @author zrz
 *
 */
public class LABEL implements Instruct{
	
	public boolean isPseudo(String opt) {
		return true;
	}
	@Override
	public boolean isComplie(String opt) {
		if(opt.endsWith(":")) {
			return true;
		}
		return false;
	}

	@Override
	public byte[] complie(String line,String[] param,int curretIndex,List<ReplaceCode>labelReplace) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int isRun(byte opt) {
		return -1;
	}

	@Override
	public void parseRun(Register R, byte opt, byte[] code) {
		// TODO Auto-generated method stub
		
	}

}
